package com.lc.question.pojo;

import com.sun.xml.internal.ws.developer.Serialization;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

//问卷
@ApiModel("问卷实体类")
public class QuestionNaire {

    @ApiModelProperty("问卷表ID")
    private int tab_Id;
    @ApiModelProperty("问卷表标题")
    private String tab_title;
    @ApiModelProperty("问卷表描述")
    private String tab_content;
    @ApiModelProperty("发布人ID")
    private String pub_Id;
    @ApiModelProperty("创建时间")
    private Date create_time;
    @ApiModelProperty("结束时间")
    private Date over_time;
    @ApiModelProperty("备注")
    private String t_text;


    public QuestionNaire(int tab_Id, String tab_title, String tab_content, String pub_Id, Date create_time, Date over_time) {
        this.tab_Id = tab_Id;
        this.tab_title = tab_title;
        this.tab_content = tab_content;
        this.pub_Id = pub_Id;
        this.create_time = create_time;
        this.over_time = over_time;
    }

    public QuestionNaire() {
    }

    public QuestionNaire(int tab_Id, String tab_title, String tab_content, String pub_Id, Date create_time, Date over_time, String t_text) {
        this.tab_Id = tab_Id;
        this.tab_title = tab_title;
        this.tab_content = tab_content;
        this.pub_Id = pub_Id;
        this.create_time = create_time;
        this.over_time = over_time;
        if (t_text==null){
            this.t_text = "";
        } else{
            this.t_text = t_text;
        }
    }

    public int getTab_Id() {
        return tab_Id;
    }

    public void setTab_Id(int tab_Id) {
        this.tab_Id = tab_Id;
    }

    public String getTab_title() {
        return tab_title;
    }

    public void setTab_title(String tab_title) {
        this.tab_title = tab_title;
    }

    public String getTab_content() {
        return tab_content;
    }

    public void setTab_content(String tab_content) {
        this.tab_content = tab_content;
    }

    public String getPub_Id() {
        return pub_Id;
    }

    public void setPub_Id(String pub_Id) {
        this.pub_Id = pub_Id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getOver_time() {
        return over_time;
    }

    public void setOver_time(Date over_time) {
        this.over_time = over_time;
    }

    public String getT_text() {
        return t_text;
    }

    public void setT_text(String t_text) {
        this.t_text = t_text;
    }
}
